<template>
  <div class="information-search-component">
    <h2 class="title">信息查找</h2>
    <div class="options">
      <input type="radio" id="option1" name="options" value="学生证" />
      <label for="option1" class="option-btn">学生证</label>
      <input type="radio" id="option2" name="options" value="银行卡" />
      <label for="option2" class="option-btn">银行卡</label>
      <input type="radio" id="option3" name="options" value="身份证" />
      <label for="option3" class="option-btn">身份证</label>
    </div>
    <input type="text" class="input-box" placeholder="请输入姓名" />
    <input type="text" class="input-box" placeholder="请输入相关信息" />
    <button @click="confirm" class="confirm-btn">确认</button>
  </div>
</template>

<script setup>
import { useRouter } from 'vue-router';

const router = useRouter();
const confirm = () => {
  router.push('/confirmmessage');
}
</script>

<style scoped>
.information-search-component {
  width: 500px;
  height: 300px;
  font-family: Arial, sans-serif;
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 10px;
  position: absolute; 
  top: 120px;
  left: 30%;
}

.title {
  color: #333;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
}

.options {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.option-btn {
  padding: 10px 20px;
  font-size: 16px;
  background-color: #4CAF50;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-right: 10px;
  transition: background-color 0.3s ease;
}

.option-btn:hover {
  background-color: #45a049;
}

.input-box {
  width: 400px;
  padding: 10px;
  margin-left: 20px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-bottom: 10px;
}

.confirm-btn {
  padding: 15px 30px;
  background-color: #007BFF;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  width: 150px;
  align-self: center;
  position: absolute;
  left: 180px;
  bottom: 20px;
}

.confirm-btn:hover {
  background-color: #0056b3;
}
</style>